package com.langfeiyes.pattern.flyweight.v2;


/**
 * 卡牌：实际享元
 */
public class PlayCard implements ICard{

    //花色：内在属性，身份标记
    private String colour;
    //数字：外部属性
    private int  num;

    public PlayCard(String colour) {
        this.colour = colour;
    }

    @Override
    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public void show() {
        System.out.println("抽中卡牌：" + colour + "，点数：" + num);
    }
}
